var Movie = {
	
	loadMovieType : function (ajax_request) {
		var data = eval("("+ajax_request.responseText+")");
		
		for(var i=0;i<data.movieTypes.length;i++) {
			var item = {
				name:data.movieTypes[i].movieTypeName
			}
			
			movieTypeStore.newItem(item);
		}
	},
	
	askForMovieType : function () {
		var href = "getMovieType.do";
		ajaxRequest(href, this.loadMovieType, null);
	}
};